﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevComponents.DotNetBar.SuperGrid;
using System.Data;
using System.Windows.Forms;

namespace SGUI
{
    public class DBRender
    {
        public static void GridDB(SuperGridControl gDB, DataTable dt)
        {
            gDB.PrimaryGrid.DataSource = dt;
            Application.DoEvents();

            foreach (GridColumn col in gDB.PrimaryGrid.Columns)
            {
                col.FilterMatchType = FilterMatchType.Wildcards; 
            }
        }
    }
}
